<h1 style="margin:0 0 15px;">แบนเนอร์</h1>
<form method="post" action="banners/admin/banners/save/<?php echo $banner->id?>" enctype="multipart/form-data">
	<table class="form">
		<tr><th></th><td><img class="img" style="width:185px; height:74px;" src="<?php echo (is_file('uploads/banner/'.$banner->image))? 'uploads/banner/'.$banner->image : 'media/images/dummy/185x74.gif' ?>"  /></td></tr>
		<tr>
			<th>รูปภาพ </th>
			<td><input type="file" name="image" /></td>
		</tr>
		<tr>
			<th>URL</th>
			<td>
				<input type="text" name="url" value="<?php echo $banner->url ?>" />
			</td>
		</tr>
		<tr>	
			<th></th>
			<td>
				<?php echo form_hidden('agency_id', (!empty($_GET['agency_id']))?$_GET['agency_id']:null); ?>
				<?php echo form_submit('',lang('btn_submit'),'class="button"')?>
				<?php echo form_button('',lang('btn_back'),'class="button" onclick="window.location = \'banners/admin/banners\'"')?>
			</td>
		</tr>
	</table>
</form>
